package com.xxgc.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 角色权限中间表
 * </p>
 *
 * @author Mr.Abel
 * @since 2022-09-27
 */
@Getter
@Setter
  @TableName("role_and_perm")
@ApiModel(value = "RoleAndPerm对象", description = "角色权限中间表")
public class RoleAndPerm implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("id")
        @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("权限id")
      private Integer pId;

      @ApiModelProperty("角色id")
      private Integer rId;

      @ApiModelProperty("有效列")
      private Boolean flag;

      @ApiModelProperty("创建时间")
      private LocalDateTime createTime;


}
